-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Charge gas to unzip wasm code #898
Conversation
Codecov Report
@@ Coverage Diff @@
## main #898 +/- ##
==========================================
- Coverage 59.34% 59.31% -0.03%
==========================================
Files 51 51
Lines 6221 6229 +8
==========================================
+ Hits 3692 3695 +3
- Misses 2264 2268 +4
- Partials 265 266 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Some questions and suggestions.
The reasoning behind this one is super-solid. |
I have applied the feedback and rebased the branch on top of main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐎
* Charge gas for unzip wasm code * Add uncompress test * Apply review feedback * Add testcase to uncompress spec
Uncompressing packed wasm code should be paid in gas to compensate for CPU.
Early version for feedback. Left to do:- Set proper cost per byte value
Not included is an ante handler to verify gas. But we don't do this for costs per bytes either.